/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package springinyeccion;

import ejbs.FicheroRemote;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 *
 * @author odeen
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        ApplicationContext aplicacion = new ClassPathXmlApplicationContext("ejb.xml");
        FicheroRemote fichero = (FicheroRemote) aplicacion.getBean("ficheroEJB");
        System.out.println("¿Existe /home? "+((fichero.existe("c:\\")?"existe":"no existe")));
    }
}
